import  requests
def get_image(url):
    heapqa={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"}
    try:
        r =requests.get(url=url,params=data,headers=heapqa)
        r.raise_for_status()
        return  r.text
    except  Exception as err:
        print(err)

if __name__ == '__main__':
    url="https://www.ip138.com/mobile.asp"
    number=input("请输入一个电话号码")
    data ={"mobile":number,"action":"mobile"}
    aaa=get_image(url)
    print(aaa)